package com.dup.jxlh.admin.service.auth;

import com.dup.jxlh.admin.entities.auth.AuthInfo;
import com.dup.jxlh.admin.entities.auth.AuthPerm;
import org.springframework.security.core.Authentication;

import java.math.BigInteger;
import java.util.ArrayList;

public interface AuthService {
    AuthInfo findByPhone(String phone);

    ArrayList<AuthPerm> getAuthPerms(BigInteger roleId);

    void resetCurrentAuthUserPerm(Authentication auth);

    Boolean createCurrentAuthPermFlag(String name);

    Boolean checkCurrentAuthPermFlag(String name);
}
